﻿<Window x:Class="WPFTurnBasedStrategyGame.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:y="clr-namespace:WPFTurnBasedStrategyGame"
        Title="MainWindow" Height="338" Width="1610">
    <Window.CommandBindings>
        <CommandBinding Command="Help" CanExecute="CommandBinding_CanExecute" Executed="CommandBinding_Executed"/>
    </Window.CommandBindings>
    <StackPanel Orientation="Vertical">
        <StackPanel Orientation="Horizontal">
            <Label>Team:</Label>
            <Label Name="TeamName">Red</Label>            
            <Label>Turn:</Label>
            <Label Name="TurnCount">Turn 1</Label>
            <Button Click="Button_Click">Finish Turn</Button>
            <Label>Moves Remaining:</Label>
            <Label Name="MoveCount">30</Label> 
            <Label>Additional Information:</Label>
            <Label Name="Info"/>
        </StackPanel>
        <ScrollViewer HorizontalScrollBarVisibility="Visible">
        <Canvas MouseLeftButtonDown="Canvas_MouseLeftButtonDown" Height="1000" Width="3000" Name="Gameboard">
            <y:Piece Team="Red" ID="9" Canvas.ZIndex="1" Canvas.Left="45" Canvas.Top="5" X="1" Y="0" Force="Infantry"/>                
            <y:Piece Team="Blue" ID="10" Canvas.ZIndex="1" Canvas.Left="125" Canvas.Top="165" X="3" Y="4" Force="Infantry"/>
            <StackPanel Orientation="Vertical" Canvas.ZIndex="0">
                <StackPanel Orientation="Horizontal">
                    <y:Gametangle Terrain="Ocean"/> 
                    <y:Gametangle Terrain="Land">
                        <y:BorderFeature Feature="River" Direction="South"/>
                            <y:BorderFeature Feature="Road" Direction="East"/>
                        </y:Gametangle>
                        <y:Gametangle Terrain="Land">
                            <y:BorderFeature Feature="Road" Direction="West"/>
                            <y:BorderFeature Feature="Road" Direction="SouthEast"/>
                        </y:Gametangle>
                    <y:Gametangle Terrain="Mountain"/>
                    <y:Gametangle Terrain="Ocean"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <y:Gametangle Terrain="Ocean"/>
                    <y:Gametangle Terrain="Land">
                        <y:BorderFeature Feature="River" Direction="North"/>
                        <y:BorderFeature Feature="River" Direction="East"/>
                    </y:Gametangle>
                    <y:Gametangle Terrain="Mountain">
                        <y:BorderFeature Feature="River" Direction="West"/>
                        <y:BorderFeature Feature="River" Direction="South"/>
                    </y:Gametangle>
                    <y:Gametangle Terrain="Land">
                        <y:BorderFeature Feature="Road" Direction="NorthWest"/>
                        <y:BorderFeature Feature="Road" Direction="South"/>
                    </y:Gametangle>
                     <y:Gametangle Terrain="Ocean"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <y:Gametangle Terrain="Ocean"/>
                    <y:Gametangle Terrain="Land"/>
                    <y:Gametangle Terrain="Land">
                        <y:BorderFeature Feature="River" Direction="North"/>
                        <y:BorderFeature Feature="River" Direction="East"/>
                    </y:Gametangle>
                    <y:Gametangle Terrain="Land">
                        <y:BorderFeature Feature="River" Direction="West"/>
                    </y:Gametangle>
                    <y:Gametangle Terrain="Ocean"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <y:Gametangle Terrain="Ocean"/>
                    <y:Gametangle Terrain="City"/>
                    <y:Gametangle Terrain="Land"/>
                    <y:Gametangle Terrain="Forest"/>
                    <y:Gametangle Terrain="Ocean"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <y:Gametangle Terrain="Ocean"/>
                    <y:Gametangle Terrain="City"/>
                    <y:Gametangle Terrain="Forest"/>
                    <y:Gametangle Terrain="Land"/>
                    <y:Gametangle Terrain="Ocean"/>
                </StackPanel>
            </StackPanel>
        </Canvas>
    </ScrollViewer>        
    </StackPanel>
</Window>
